package com.touchstone.cloudpacs.service;

import com.github.pagehelper.PageInfo;
import com.touchstone.cloudpacs.common.utils.request.PageRequest;
import com.touchstone.cloudpacs.entity.OperateLog;
import com.touchstone.cloudpacs.request.query.LogPageQuery;
import com.touchstone.cloudpacs.vo.OperateLogPageVO;

/**
 * @Description : 操作日志业务层
 * @Author : hunter
 * @Date: 2019-07-11 23:05
 * @Version: 1.0
 **/
public interface IOperateLogService {

    /**
     * 新增操作日志
     *
     * @param log 操作日志
     * @return OperateLog 保存后的操作日志记录
     * @createUserName: hunter
     * @createTime: 2019/7/11 23:05
     */
    int save(OperateLog log);

    /**
     * 分页查询操作日志
     *
     * @param pageRequest 查询条件
     * @return PageInfo<OperateLogPageVO>
     * @throws：
     * @createUserName: hunter
     * @createTime: 2019/7/14 20:50
     */
    PageInfo<OperateLogPageVO> selectByPage(PageRequest<LogPageQuery> pageRequest);
}
